import request from '@/utils/request'

export function http_logReviewAgain_list(page, param) {
    // console.log(param)
    return request({
        url: '/workdailyLog/getWorkDailyReviewList',
        method: 'get',
        params: {...page, ...param}
    })
}


export function http_logReviewAgain_deptList(param,proNo) {
    return request({
        url: '/workdailyLog/getDeptList',
        method: 'get',
        params: {userId:param.userId, workDate: param.workDate,proNo,userName: param.userName}
    })
}


export function http_export_List(param) {
    const baseUrl = process.env.VUE_APP_BASE_API
    let deptId = param.deptId == null ? '' : param.deptId
    let deptName = param.deptName == null ? '' : param.deptName
    let isResign =  param.isResign == null ? '' : param.isResign
    let userName = param.userName == null ? '' : param.userName
    let beginDate =  param.beginDate == null ? '' : param.beginDate
    let endDate =  param.endDate == null ? '' : param.endDate
    let proNo =  param.proNo == null ? '' : param.proNo
    window.location.href = baseUrl + '/workdailyLog/exportWorkDailyReview?deptId='+deptId+'&isResign='+isResign+'&userName='+userName+'&beginDate='+beginDate+'&endDate='+endDate+'&proNo='+proNo+'&deptName='+deptName
}

export function http_import_log(file) {
    // console.log(file)
    return request({
        url: '/workdailyLog/importWorkDailyReviewDetail',
        method: 'post',
        data: file


    })
}
